import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'user',
    //   component: () => import('../views/userView.vue'),
    // },
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/Main',
      name: 'Main',
      component: () => import('../views/MainView.vue'),
      children: [
        {
          path: '/about',
          name: 'about',
          component: () => import('../views/AboutView.vue'),
        },

        {
          path: '/getuser',
          name: 'getuser',
          component: () => import('../views/GetuserView.vue'),
        },
        {
          path: '/adduser',
          name: 'adduser',
          component: () => import('../views/AdduserView.vue'),
        },
        {
          path: '/addRole',
          name: 'addRole',
          component: () => import('../views/AddRoleView.vue'),
        },
        {
          path: '/updateuser',
          name: 'updateuser',
          component: () => import('../views/UpdateuserView.vue'),
        },
        {
          path: '/RoleList',
          name: 'RoleList',
          component: () => import('../views/RoleListView.vue'),
        },
        {
          path: '/AddMenu',
          name: 'AddMenu',
          component: () => import('../views/AddMenuView.vue'),
        },
        {
          path: '/GetMenu',
          name: 'GetMenu',
          component: () => import('../views/GetMenuView.vue'),
        },
        {
          path: '/UpdateMenu',
          name: 'UpdateMenu',
          component: () => import('../views/UpdateMenuView.vue'),
        },
        {
          path: '/RoleMenu',
          name: 'RoleMenu',
          component: () => import('../views/RoleMenuView.vue'),
        },
        {
          path: '/AddLeave',
          name: 'AddLeave',
          component: () => import('../views/AddLeaveView.vue'),
        },
        {
          path: '/GetLeave',
          name: 'GetLeave',
          component: () => import('../views/GetLeaveView.vue'),
        },
        {
          path: '/UpdateLeave',
          name: 'UpdateLeave',
          component: () => import('../views/UpdateLeaveView.vue'),
        },
        {
          path: '/Approval',
          name: 'Approval',
          component: () => import('../views/ApprovalView.vue'),
        },
        {
          path: '/Add',
          name: 'Add',
          component: () => import('../views/AddView.vue'),
        },
        {
          path: '/New',
          name: 'New',
          component: () => import('../views/NewView.vue'),
        },
        {
          path: '/Product',
          name: 'Product',
          component: () => import('../views/rabbit/ProductView.vue'),
        },
        {
          path: '/GetProduct',
          name: 'GetProduct',
          component: () => import('../views/rabbit/GetProductView.vue'),
        },
        {
          path: '/AddStorageView',
          name: 'AddStorageView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/库位管理/AddStorageView.vue'),
        },
        {
          path: '/GetStorageView',
          name: 'GetStorageView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/库位管理/GetStorageView.vue'),
        },
        {
          path: '/GetCarrierView',
          name: 'GetCarrierView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/承运商管理/GetCarrierView.vue'),
        },
        // {
        //   path: '/AddCustomer',
        //   name: 'AddCustomer',
        //   // route level code-splitting
        //   // this generates a separate chunk (About.[hash].js) for this route
        //   // which is lazy-loaded when the route is visited.
        //   component: () => import('../views/库存管理/客户管理/AddCustomerView.vue'),
        // }
        // {
        //   path: '/GetCustomer',
        //   name: 'GetCustomer',
        //   // route level code-splitting
        //   // this generates a separate chunk (About.[hash].js) for this route
        //   // which is lazy-loaded when the route is visited.
        //   component: () => import('../views/库存管理/客户管理/GetCustomerView.vue'),
        // },
        {
          path: '/AddPurchasing',
          name: 'AddPurchasing',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/AddPurchasingView.vue'),
        },
        {
          path: '/GetPurchasing',
          name: 'GetPurchasing',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/GetPurchasingView.vue'),
        },
        // {
        //   path: '/AddStocktakingModels',
        //   name: 'AddStocktakingModels',
        //   // route level code-splitting
        //   // this generates a separate chunk (About.[hash].js) for this route
        //   // which is lazy-loaded when the route is visited.
        //   component: () => import('../views/库存管理/盘点管理/AddStocktakingModelsView.vue'),
        // },
        // {
        //   path: '/GetStocktakingModels',
        //   name: 'GetStocktakingModels',
        //   // route level code-splitting
        //   // this generates a separate chunk (About.[hash].js) for this route
        //   // which is lazy-loaded when the route is visited.
        //   component: () => import('../views/库存管理/盘点管理/GetStocktakingModelsView.vue'),
        // },
        {
          path: '/AddCustomer',
          name: 'AddCustomer',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/客户管理/AddCustomerView.vue'),
        },
        {
          path: '/GetCustomer',
          name: 'GetCustomer',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/客户管理/GetCustomerView.vue'),
        },
        {
          path: '/AddAllocate',
          name: 'AddAllocate',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/调拨管理/AddAllocateView.vue'),
        },
        {
          path: '/GetAllocate',
          name: 'GetAllocate',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/调拨管理/GetAllocateView.vue'),
        },
        {
          path: '/UpdateCustomer',
          name: 'UpdateCustomer',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/客户管理/UpdateCustomerView.vue'),
        },
        {
          path: '/AddPurchasing',
          name: 'AddPurchasing',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/AddPurchasingView.vue'),
        },
        {
          path: '/GetPurchasingView',
          name: 'GetPurchasingView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/GetPurchasingView.vue'),
        },
        {
          path: '/AddSellView',
          name: 'AddSellView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/销售管理/AddSellView.vue'),
        },
        {
          path: '/Sell',
          name: 'Sell',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/销售管理/SellView.vue'),
        },
        {
          path: '/GetSellView',
          name: 'GetSellView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/销售管理/GetSellView.vue'),
        },
        {
          path: '/UpdateSell',
          name: 'UpdateSell',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/采购管理/销售管理/UpdateSellView.vue'),
        },
        {
          path: '/AddStocktakingModels',
          name: 'AddStocktakingModels',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/盘点管理/AddStocktakingModelsView.vue'),
        },
        {
          path: '/GetStocktakingModels',
          name: 'GetStocktakingModels',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/盘点管理/GetStocktakingModelsView.vue'),
        },
        {
          path: '/Stocktaking',
          name: 'Stocktaking',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/盘点管理/StocktakingView.vue'),
        },
        {
          path: '/Availableinstock',
          name: 'Availableinstock',
          component: () => import('../views/报表管理/AvailableinstockView.vue'),
        },
        {
          path: '/Report',
          name: 'Report',
          component: () => import('../views/报表管理/ReportView.vue'),
        },
        {
          path: '/Longin',
          name: 'Longin',
          component: () => import('../views/报表管理/LonginView.vue'),
        },
        {
          path: '/Warehouselocation',
          name: 'Warehouselocation',
          component: () => import('../views/报表管理/WarehouselocationView.vue'),
        },
        {
          path: '/Store',
          name: 'Store',
          component: () => import('../views/库存管理/入库管理/StoreView.vue'),
        },
        {
          path: '/StoreShow',
          name: 'StoreShow',
          component: () => import('../views/库存管理/入库管理/StoreShowView.vue'),
        },
        {
          path: '/StoreUpdate',
          name: 'StoreUpdate',
          component: () => import('../views/库存管理/入库管理/StoreUpdateView.vue'),
        },
        {
          path: '/AddProduce',
          name: 'AddProduce',
          component: () => import('../views/生产计划/生产计划单/AddProduceView.vue'),
        },
        {
          path: '/GetPlanExecutionDetails',
          name: 'GetPlanExecutionDetails',
          component: () => import('../views/生产计划/生产计划单/GetPlanExecutionDetailsView.vue'),
        },
        {
          path: '/GetProduce',
          name: 'GetProduce',
          component: () => import('../views/生产计划/生产计划单/GetProduceView.vue'),
        },
        {
          path: '/UpdateProduce',
          name: 'UpdateProduce',
          component: () => import('../views/生产计划/生产计划单/UpdateProduceView.vue'),
        },
        {
          path: '/AddProductionplanworkorder',
          name: 'AddProductionplanworkorder',
          component: () => import('../views/生产计划/生产计划单/AddProductionplanworkorderView.vue'),
        },
        {
          path: '/GetProductionplanworkorder',
          name: 'GetProductionplanworkorder',
          component: () => import('../views/生产计划/生产计划单/GetProductionplanworkorderView.vue'),
        },
        {
          path: '/UpdateProductionplanworkorder',
          name: 'UpdateProductionplanworkorder',
          component: () => import('../views/生产计划/生产计划单/UpdateProductionplanworkorderView.vue'),
        },
        {
          path: '/AddProcurement',
          name: 'AddProcurement',
          component: () => import('../views/生产计划/采购计划/AddProcurementView.vue'),
        },
        {
          path: '/GetProcurement',
          name: 'GetProcurement',
          component: () => import('../views/生产计划/采购计划/GetProcurementView.vue'),
        },
        {
          path: '/UpdateProcurement',
          name: 'UpdateProcurement',
          component: () => import('../views/生产计划/采购计划/UpdateProcurementView.vue'),
        },
        {
          path: '/AddBom',
          name: 'AddBom',
          component: () => import('../views/生产计划/物料清单/AddBomView.vue'),
        },
        {
          path: '/UpdateBom',
          name: 'UpdateBom',
          component: () => import('../views/生产计划/物料清单/UpdateBomView.vue'),
        },
        {
          path: '/GetBom',
          name: 'GetBom',
          component: () => import('../views/生产计划/物料清单/GetBomView.vue'),
        },
        {
          path: '/ShowProduct',
          name: 'ShowProduct',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/产品管理/ShowProduct.vue'),
        },
        {
          path: '/GetCarrierView',
          name: 'GetCarrierView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/承运商管理/GetCarrierView.vue'),
        },
        {
          path: '/UnitAppView',
          name: 'UnitAppView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/单位管理/UnitAppView.vue'),
        },
        {
          path: '/SupperAppView',
          name: 'SupperAppView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/SupperApp/SupperAppView.vue'),
        },
        {
          path: '/SupperAppView',
          name: 'SupperAppView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/销售管理/AddSellView.vue'),
        },
        {
          path: '/EntrepotView',
          name: 'EntrepotView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/仓库管理/EntrepotView.vue'),
        },
        {
          path: '/ReturnView',
          name: 'ReturnView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/退货管理/ReturnView.vue'),
        },
        {
          path: '/GetCarrierView',
          name: 'GetCarrierView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/库存管理/承运商管理/GetCarrierView.vue'),
        },
        {
          path: '/AddOutAount',
          name: 'AddOutAount',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/出库管理/AddOutAountView.vue'),
        },
        {
          path: '/ReportlossesAdd',
          name: 'ReportlossesAdd',
          component: () => import('../views/库存管理/报损管理/ReportlossesAddView.vue'),
        },
        {
          path: '/Reportlosses',
          name: 'Reportlosses',
          component: () => import('../views/库存管理/报损管理/ReportlossesView.vue'),
        },
        {
          path: '/ReportlossesUpdate',
          name: 'ReportlossesUpdate',
          component: () => import('../views/库存管理/报损管理/ReportlossesUpdateView.vue'),
        },
        // {
        //   path: '/FinanceView',
        //   name: 'FinanceView',
        //   // route level code-splitting
        //   // this generates a separate chunk (About.[hash].js) for this route
        //   // which is lazy-loaded when the route is visited.
        //   component: () => import('../views/Finance/FinanceView.vue'),
        // },
        {
          path: '/SupperAppView',
          name: 'SupperAppView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/SupperApp/SupperAppView.vue'),
        },
        {
          path: '/Showout',
          name: 'Showout',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/出库管理/Showout.vue'),
        },
        {
          path: '/UpdateOutAount',
          name: 'UpdateOutAount',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/出库管理/UpdateOutAount.vue'),
        },
        {
          path: '/ReportlossesAdd',
          name: 'ReportlossesAdd',
          component: () => import('../views/库存管理/报损管理/ReportlossesAddView.vue'),
        },
        {
          path: '/Reportlosses',
          name: 'Reportlosses',
          component: () => import('../views/库存管理/报损管理/ReportlossesView.vue'),
        },
        {
          path: '/ReportlossesUpdate',
          name: 'ReportlossesUpdate',
          component: () => import('../views/库存管理/报损管理/ReportlossesUpdateView.vue'),
        },
        {
          path: '/OutAddmanage',
          name: 'OutAddmanage',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/移库管理/OutAddmanage.vue'),
        },
        {
          path: '/ShowTranManage',
          name: 'ShowTranManage',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/移库管理/ShowTranManage.vue'),
        },
        {
          path: '/UpdateTranManage',
          name: 'UpdateTranManage',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/移库管理/UpdateTranManage.vue'),
        },
        {
          path: '/UnitAppView',
          name: 'UnitAppView',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/单位管理/UnitAppView.vue'),
        },
        {
          path: '/Production',
          name: 'Production',
          component: () => import('../views/生产管理/生产订单/ProductionView.vue'),
        },
        {
          path: '/ProductionAdd',
          name: 'ProductionAdd',
          component: () => import('../views/生产管理/生产订单/ProductionAddView.vue'),
        },
        {
          path: '/ProductionUpdate',
          name: 'ProductionUpdate',
          component: () => import('../views/生产管理/生产订单/ProductionUpdateView.vue'),
        },
        {
          path: '/Productionpicking',
          name: 'Productionpicking',
          component: () => import('../views/生产管理/生产领料/ProductionpickingView.vue'),
        },
        {
          path: '/ProductionpickingAdd',
          name: 'ProductionpickingAdd',
          component: () => import('../views/生产管理/生产领料/ProductionpickingAddView.vue'),
        },
        {
          path: '/ProductionpickingUpdate',
          name: 'ProductionpickingUpdate',
          component: () => import('../views/生产管理/生产领料/ProductionpickingUpdateView.vue'),
        },
        {
          path: '/ProcessReportForm',
          name: 'ProcessReportForm',
          component: () => import('../views/生产管理/工序报工单/ProcessReportFormView.vue'),
        },
        {
          path: '/ProcessReportFormAdd',
          name: 'ProcessReportFormAdd',
          component: () => import('../views/生产管理/工序报工单/ProcessReportFormAddView.vue'),
        },
        {
          path: '/ProcessReportFormUpdate',
          name: 'ProcessReportFormUpdate',
          component: () => import('../views/生产管理/工序报工单/ProcessReportFormUpdateView.vue'),
        },
        {
          path: '/Productionprogress',
          name: 'Productionprogress',
          component: () => import('../views/生产管理/生产进度/ProductionprogressView.vue'),
        },
        {
          path: '/Productionexecutionschedule',
          name: 'Productionexecutionschedule',
          component: () => import('../views/生产管理/生产执行明细表/ProductionexecutionscheduleView.vue'),
        },
        {
          path: '/Newproductionworkorder',
          name: 'Newproductionworkorder',
          component: () => import('../views/生产管理/生产工单/新增生产工单/NewproductionworkorderView.vue'),
        },
        {
          path: '/ProductionWorkOrderInstructions',
          name: 'ProductionWorkOrderInstructions',
          component: () => import('../views/生产管理/生产工单/生产工单说明/ProductionWorkOrderInstructionsView.vue'),
        },
        // {
        //   path: '/WorkOrderDetailsOrderView',
        //   name: 'WorkOrderDetailsOrderView',
        //   component: () => import('../views/生产管理/生产工单/工单详情页_工单信息/WorkOrderDetailsOrderView.vue'),
        // },
        {
          path: '/WorkOrderDetailsPageOperatio',
          name: 'WorkOrderDetailsPageOperatio',
          component: () => import('../views/生产管理/生产工单/工单详情页_操作信息/WorkOrderDetailsPageOperatioView.vue'),
        },
        {
          path: '/WorkOrderDetailInformation',
          name: 'WorkOrderDetailInformation',
          component: () => import('../views/生产管理/生产工单/工单详情页_报工信息/WorkOrderDetailInformationView.vue'),
        },
        {
          path: '/DaoBanView',
          name: 'DaoBanView',
          component: () => import('../views/生产管理/生产工单/工单详情页_报工信息/DaoBanView.vue'),
        },
        {
          path: '/NewproductionworkorderShowView',
          name: 'NewproductionworkorderShowView',
          component: () => import('../views/生产管理/生产工单/新增生产工单/NewproductionworkorderShowView.vue'),
        },
        {
          path: '/ProcessflowPageView',
          name: 'ProcessflowPageView',
          component: () => import('../views/生产管理/工序管理/工序分类/ProcessflowPageView.vue'),
        }
      ]
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('../views/userView.vue'),
    },
  ]
},);
       

export default router
